package spring;

import org.testng.annotations.Test;
import spring.bean.AnnotationApplicationContext0;
import spring.bean.ApplicationContext0;
import spring.service.UserService;

public class TestUser {
    @Test
    public void TestUser() throws Exception {
        ApplicationContext0 context0 =
                new AnnotationApplicationContext0("spring");
        UserService userService = (UserService) context0.getBean(UserService.class);
        System.out.println(userService);
        userService.add();
    }
}
